package com.controller;


import com.service.PhotoService;
import com.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;


@RestController
@RequestMapping("/photo")
public class PhotoController {

    @Autowired
    private PhotoService photoService;

    @GetMapping("/styleById")
    public Result styleById(@RequestParam("styleId") Integer styleId){
        List<Map<String, Object>> list = photoService.styleById(styleId);
        return Result.success(list);
    }
}
